package com.freedom.ums.api.member.feign;

import com.freedom.common.core.result.CommonResult;
import com.freedom.ums.api.member.pojo.dto.MemberAddressDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "freedom-ums", contextId = "memberAddress")
public interface MemberAddressFeign {

    @GetMapping("/internal/member/address/default/{memberId}")
    CommonResult<MemberAddressDTO> getDefaultMemberAddress(@PathVariable Integer memberId);
}
